package cn.growthgate.fgo.entity.vo;

import java.util.List;

import cn.growthgate.fgo.util.NumberUtils;

public class MyItemVo implements Comparable<MyItemVo> {

	private String name;

	private String avatar;

	private long number;

	private List<MyItemVo> detail;

	public MyItemVo() {
	}

	public MyItemVo(String name, long number) {
		this.name = name;
		this.number = number;
	}

	public MyItemVo(long number, List<MyItemVo> detail) {
		this.number = number;
		this.detail = detail;
	}

	public MyItemVo(String name, long number, List<MyItemVo> detail) {
		this.name = name;
		this.number = number;
		this.detail = detail;
	}

	public MyItemVo(String name, String avatar, long number, List<MyItemVo> detail) {
		this.name = name;
		this.avatar = avatar;
		this.number = number;
		this.detail = detail;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public long getNumber() {
		return number;
	}

	public void setNumber(long number) {
		this.number = number;
	}

	public List<MyItemVo> getDetail() {
		return detail;
	}

	public void setDetail(List<MyItemVo> detail) {
		this.detail = detail;
	}

	@Override
	public int compareTo(MyItemVo o) {
		return NumberUtils.compare(number, o.number);
	}

}
